/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helpthread;

import Globals.AllGlobal;
import controller.MyController;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
 *
 * @author Administrator
 */
public class StatusHelpThread implements Runnable {
    private MyController controller;
    public StatusHelpThread(MyController controller){
        this.controller=controller;
    }
    public void run() {
        javax.swing.Timer timer=new javax.swing.Timer(500, new ActionListener() {

            public void actionPerformed(ActionEvent ae) {
                controller.getFxStatus().updateStatus(controller.getZhuangtai(), controller.getGuangbiaoxz(), controller.getBianjizt(),controller.getBeizhu());
            }
        });
        timer.start();
    }
    
}
